package xiaoqi.springboot.boot.rpc;

import org.apache.dubbo.config.annotation.Service;
import xiaoqi.springboot.boot.rpc.api.UserRpcService;
import xiaoqi.springboot.boot.rpc.dto.UserDTO;

@Service(version = "${dubbo.provider.UserRpcService.version}")
public class UserRpcServiceImpl implements UserRpcService {

    @Override
    public UserDTO get(Integer id) {
        return new UserDTO().setId(id).setName("没有昵称:" + id).setGender(id % 2 + 1);
    }
}
